//
//  BVCategoryOneCell.m
//  BuyVegetable
//
//  Created by yushanchang on 16/11/1.
//  Copyright © 2016年 com.yinding. All rights reserved.
//

#import "BVCategoryOneCell.h"

@implementation BVCategoryOneCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 0.5)];
    lineView.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:lineView];
    
    /*颜色相关设置*/
    self.categoryOneLabel.highlightedTextColor = [UIColor BVBaseOrangeColor];
    self.selectedBackgroundView = [[UIView alloc] initWithFrame:self.frame];
    self.selectedBackgroundView.backgroundColor = [UIColor whiteColor];

    
    if(self.is_selected == NO){
        [self.stripImageV setHidden:YES];
    }
}

- (void)show_select{
    if (self.is_selected == NO) {
        [self.stripImageV setHidden:NO];
        [self bringSubviewToFront:self.stripImageV];
        self.is_selected = YES;
    }else{
        [self hide_select];
    }
}

- (void)hide_select{
    [self.stripImageV setHidden:YES];
    self.is_selected = NO;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
